﻿using ExcelUnity.Exporter;
using ExcelUnity.Importer;
using Microsoft.Extensions.DependencyInjection;

namespace ExcelUnity
{
    public static class ExcelUnityExtension
    {
        public static IServiceCollection AddExcelUnity(this IServiceCollection service)
        {
            service.AddScoped(typeof(IExcelExporter), typeof(DefaultExcelExporter));
            service.AddScoped(typeof(IExcelImporter), typeof(DefaultExcelImporter));
            return service;
        }
    }
}
